home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Bank smakow / BankSmakow.air / BankSmakow.swf / scripts / _BankSmakow_mx_managers_SystemManager.as < prev    next >
Text File  |  2009-12-16  |  5KB  |  120 lines

  1. package
  2. {
  3.    import flash.system.ApplicationDomain;
  4.    import flash.system.Security;
  5.    import flash.utils.Dictionary;
  6.    import mx.core.EmbeddedFontRegistry;
  7.    import mx.core.FlexVersion;
  8.    import mx.core.IFlexModule;
  9.    import mx.core.IFlexModuleFactory;
  10.    import mx.managers.SystemManager;
  11.    
  12.    public class _BankSmakow_mx_managers_SystemManager extends SystemManager implements IFlexModuleFactory
  13.    {
  14.        
  15.       
  16.       private var _preloadedRSLs:Dictionary;
  17.       
  18.       public function _BankSmakow_mx_managers_SystemManager()
  19.       {
  20.          FlexVersion.compatibilityVersionString = "3.0.0";
  21.          super();
  22.       }
  23.       
  24.       override public function create(... rest) : Object
  25.       {
  26.          if(rest.length > 0 && !(rest[0] is String))
  27.          {
  28.             return super.create.apply(this,rest);
  29.          }
  30.          var _loc2_:String = rest.length == 0 ? "BankSmakow" : String(rest[0]);
  31.          var _loc3_:Class = Class(getDefinitionByName(_loc2_));
  32.          if(!_loc3_)
  33.          {
  34.             return null;
  35.          }
  36.          var _loc4_:Object;
  37.          if((_loc4_ = new _loc3_()) is IFlexModule)
  38.          {
  39.             IFlexModule(_loc4_).moduleFactory = this;
  40.          }
  41.          if(rest.length == 0)
  42.          {
  43.             EmbeddedFontRegistry.registerFonts(info()["fonts"],this);
  44.          }
  45.          return _loc4_;
  46.       }
  47.       
  48.       override public function allowInsecureDomain(... rest) : void
  49.       {
  50.          var _loc2_:* = null;
  51.          Security.allowInsecureDomain(rest);
  52.          for(_loc2_ in _preloadedRSLs)
  53.          {
  54.             if(_loc2_.content && "allowInsecureDomainInRSL" in _loc2_.content)
  55.             {
  56.                _loc2_.content["allowInsecureDomainInRSL"](rest);
  57.             }
  58.          }
  59.       }
  60.       
  61.       override public function info() : Object
  62.       {
  63.          return {
  64.             "compiledLocales":["en_US"],
  65.             "compiledResourceBundleNames":["CairngormMessages","collections","containers","controls","core","effects","formatters","skins","styles"],
  66.             "creationComplete":"checkUpdate(event)",
  67.             "currentDomain":ApplicationDomain.currentDomain,
  68.             "fonts":{
  69.                "Myriad":{
  70.                   "regular":true,
  71.                   "bold":false,
  72.                   "italic":false,
  73.                   "boldItalic":false
  74.                },
  75.                "Segoe":{
  76.                   "regular":true,
  77.                   "bold":true,
  78.                   "italic":false,
  79.                   "boldItalic":false
  80.                }
  81.             },
  82.             "height":"790",
  83.             "horizontalScrollPolicy":"off",
  84.             "layout":"absolute",
  85.             "mainClassName":"BankSmakow",
  86.             "mixins":["_BankSmakow_FlexInit","_alertButtonStyleStyle","_ScrollBarStyle","_winMaxButtonStyle","_ToolTipStyle","_winCloseButtonStyle","_macCloseButtonStyle","_comboDropdownStyle","_CheckBoxStyle","_gripperSkinStyle","_winRestoreButtonStyle","_ListBaseStyle","_globalStyle","_PanelStyle","_windowStylesStyle","_activeButtonStyleStyle","_errorTipStyle","_CursorManagerStyle","_dateFieldPopupStyle","_dataGridStylesStyle","_AlertStyle","_macMinButtonStyle","_ControlBarStyle","_activeTabStyleStyle","_textAreaHScrollBarStyleStyle","_TreeStyle","_DragManagerStyle","_statusTextStyleStyle","_WindowedApplicationStyle","_HTMLStyle","_ContainerStyle","_textAreaVScrollBarStyleStyle","_linkButtonStyleStyle","_windowStatusStyle","_WindowStyle","_richTextEditorTextAreaStyleStyle","_todayStyleStyle","_TextInputStyle","_plainStyle","_winMinButtonStyle","_macMaxButtonStyle","_ApplicationStyle","_SWFLoaderStyle","_headerDateTextStyle","_ButtonStyle","_popUpMenuStyle","_titleTextStyleStyle","_opaquePanelStyle","_swatchPanelTextFieldStyle","_weekDayStyleStyle","_headerDragProxyStyleStyle","_com_makingwaves_view_NotificationViewWatcherSetupUtil","_com_makingwaves_view_BackgroundViewWatcherSetupUtil","_com_makingwaves_components_RecipeListItemRendererWatcherSetupUtil","_com_makingwaves_view_MainViewWatcherSetupUtil","_com_makingwaves_view_RecipeViewWatcherSetupUtil"],
  87.             "remove":"onRemove(event)",
  88.             "showFlexChrome":"false",
  89.             "showStatusBar":"false",
  90.             "showTitleBar":"false",
  91.             "verticalScrollPolicy":"off",
  92.             "width":"925",
  93.             "windowComplete":"onWindowComplete(event)"
  94.          };
  95.       }
  96.       
  97.       override public function get preloadedRSLs() : Dictionary
  98.       {
  99.          if(_preloadedRSLs == null)
  100.          {
  101.             _preloadedRSLs = new Dictionary(true);
  102.          }
  103.          return _preloadedRSLs;
  104.       }
  105.       
  106.       override public function allowDomain(... rest) : void
  107.       {
  108.          var _loc2_:* = null;
  109.          Security.allowDomain(rest);
  110.          for(_loc2_ in _preloadedRSLs)
  111.          {
  112.             if(_loc2_.content && "allowDomainInRSL" in _loc2_.content)
  113.             {
  114.                _loc2_.content["allowDomainInRSL"](rest);
  115.             }
  116.          }
  117.       }
  118.    }
  119. }
  120.